﻿using System;
using System.Collections.Generic;
using System.Text;

namespace test
{
    public class test2
    {
        private string _name;
        private int _age;
        private string _tele;

        public test2()
        {
        }

        public test2(string name, int age, string tele="123")
        {
            Name = name;
            Age = age;
            Tele = tele;
        }
        public test2(string name,int age):this(name,age,"1")
        {

        }
        public void test3(string name="小华",int age=18,string tele="123")
        {
            this.Name = name;
            this.Tele = tele;
        }
        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }
        public int Age
        {
            get
            {
                return _age;
            }
            set
            {
                _age = value;
            }
        }
        public string Tele { get; set; }

        public void InIt(int x=18)
        {
            this._name = "无名氏";
            this._age = x;
        }
    }
}
